import { ImageService, PermissionService } from "maishu-services-sdk";
import { serviceHost } from "json!websiteConfig";

let protocol = "http:";
ImageService.baseUrl = `/image`;
PermissionService.baseUrl = `/auth`;


export let config = {
    serviceHost,
    shopUrl: `/AdminShop/`,
    weixinUrl: `/AdminWeiXin/`,
    siteUrl: `/AdminSite/`,
    memberUrl: `/AdminMember/`,
    accountUrl: `/AdminAccount/`,
    stockUrl: `/AdminStock/`,
    pageSize: 10
}



// let lib = "./lib";
// let webSiteConfig: WebSiteConfig = {
//     requirejs: {
//         context: contextName,
//         shim: {
//             "bootstrap-datepicker": {
//                 deps: [
//                     `css!${lib}/bootstrap-datepicker/css/bootstrap-datepicker`
//                 ]
//             }
//         },
//         paths: {
//             "ace_editor": `${lib}/ace-builds/src`,
//             "clipboard": `${lib}/clipboard.min`,
//             "devices": `${lib}/devices.css-1.2/assets/devices.min`,
//             "jquery-ui": `${lib}/jquery-ui-1.12.1/jquery-ui`,
//             "js-xlsx": `${lib}/js-xlsx/xlsx.full.min`,
//             "qrcode": `${lib}/qrcode`,
//             "ue": `${lib}/ueditor`,

//             "maishu-jueying": "node_modules/maishu-jueying/dist/index",
//             "bootstrap-datepicker": `${lib}/bootstrap-datepicker/js/bootstrap-datepicker`
//         }
//     },
//     menuItems: [
//         {
//             name: "微店", icon: "icon-dashboard", children: [
//                 { name: "店铺设置", path: "#store/setting" },
//                 { name: "店铺首页", path: "#store/home" },
//                 { name: "会员主页", path: "#store/member" },
//                 { name: "店铺导航", path: "#store/menu" },
//                 { name: "购物车", path: "#store/shoppingCart" },
//                 { name: "店铺风格", path: "#store/style" },
//                 { name: "商品类别", path: "#store/categories" }
//             ]
//         },
//         {
//             name: "商品", icon: "icon-gift",
//             children: [
//                 {
//                     name: "商品列表", path: "#shopping/product-list", children: [
//                         { name: "", path: "#shopping/product-add" },
//                         { name: "", path: "#shopping/product-edit" }
//                     ],
//                 },
//                 { name: "商品品牌", path: "#shopping/brand-list" }
//             ]
//         },
//         {
//             name: "订单", icon: "icon-list", children: [
//                 { name: "订单列表", path: "#shopping/order-list" }
//             ]
//         },
//         {
//             name: "营销", icon: "icon-bullhorn",
//             children: [
//                 {
//                     name: "促销活动", path: "#shopping/promotion/activities", children: [
//                         { name: "", path: "#shopping/promotion/activityEdit" }
//                     ]
//                 },
//                 { name: "优惠券", path: "#coupon/coupon-list", children: [] },
//                 { name: "优惠码", path: "#coupon/coupon-code-list", children: [] }
//             ]
//         },
//         {
//             name: "设置", icon: "icon-cog",
//             children: [
//                 { name: "微信设置", path: "#settings/weixin" },
//                 {
//                     name: "运费设置", path: "#freight/solution-list",
//                     children: [
//                         { name: "", path: "#freight/freight-list" }
//                     ]
//                 },
//                 { name: "收款账号", path: "#finance/receivement-account" }
//             ]
//         }
//     ]
// }

// export default webSiteConfig;

